package com.mazaiting.scheduler.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.TimeUnit;

/**
 * 测试任务
 *
 * @author mazaiting
 * @create_time 2022/4/5 21:44
 */
@Slf4j
@Component
public class TestTask extends BaseTask {

    @Override
    protected void execute(Map<String, String> map) {
        log.info("测试定时任务执行");
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
